/**   
* ManageService.java  2015年12月18日 下午3:55:19 
*
* Copyright (c) 2010-2061 leying.com, Inc. All rights reserved.
*
* @Description TODO
* @version 3.0   
*
*/ 
package com.xiake.service.manager;

import java.io.Serializable;
import java.util.List;

import com.xiake.core.entity.manager.Menu;
import com.xiake.core.entity.manager.MngUser;
import com.xiake.core.entity.manager.Role;
import com.xiake.utils.PageInfo;


public interface ManageService {
  public MngUser login(String username,String password) throws Exception;
  
  public Serializable saveMngUser(String truename,String username,String password,Integer roleId,Integer id) throws Exception;
  
  public List<MngUser> findMngUserList(Integer roleId,String name,PageInfo pageInfo) throws Exception;
  
  public MngUser findMngUserById(Integer mngUserId) throws Exception;
  
  public List<Menu> findMenuByRoleId(Integer roleId) throws Exception;
  
  public List<Menu> findMenuByWithChecked(Integer roleId) throws Exception;
  
  public List<Role> findRoleList() throws Exception;
  
  public Role findRoleById(Integer roleId) throws Exception;
  
  public boolean checkUsername(String username) throws Exception;
  
  public void deleteMUserById(Integer muserId) throws Exception;
  
  public void saveMenu(Integer id,String name,String url,String icon,Integer parentId, Integer index) throws Exception;
  
  public void deleteMenuById(Integer menuId) throws Exception;
  
  public void saveRole(Integer id,String name,Integer[] menuids,Integer createrId) throws Exception;
  
  public void deleteRoleById(Integer roleId) throws Exception;
  
}
